package com.sskj.run.presenter;

import com.lzy.okgo.model.Response;
import com.sskj.common.base.HttpData;
import com.sskj.lib.http.JsonCallBack;
import com.sskj.run.bean.AssetAllNewBean;
import com.sskj.run.bean.AssetBean;
import com.sskj.run.ui.fragment.AssetFragment;

import java.util.List;


public class AssetFragmentPresenter extends BasePresenter<AssetFragment> {

    public void getQCInfo() {
        httpService.getAsset()
                .tag(this)
                .execute(new JsonCallBack<HttpData<List<AssetBean>>>() {
                    @Override
                    public void onSuccess(Response<HttpData<List<AssetBean>>> response) {
                        HttpData<List<AssetBean>> httpData = response.body();

                        mView.updateQC(httpData.getData());
                    }
                });
    }
}
